package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.StrategyComment;
import cn.wolfcode.luowowo.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 游记评论 MongoDB数据的接口
 */
@Repository
public interface TravelCommentRepository extends MongoRepository<TravelComment, String> {
    //游记下的评论
    List<TravelComment> findByTravelId(String travelId);
}
